/*
* $Id: ViewPointsItems.java 234 2010-12-29 13:37:20Z volokaleks@yandex.ru $
*
* Copyright 2008-2010 by Volokitin Alexey
* All rights reserved
*
*/
package apiary.component.settings;

import apiary.Apiary;
import apiary.settings.SettingsRecord;
import apiary.ui.SettingForm;

/**
 * Sets view points
 * @author lexus
 */
public class ViewPointsItems extends SettingsItem {

    /**
     * Constructor
     * @param form settings form
     */
    public ViewPointsItems(SettingForm form) {
        super(form);
        Apiary apiary = Apiary.getInstance();
        mainCategory = getCategoryItem(ID_PARENT,
                                       apiary.getLocaleString("PointView"),
                                       false);
        String id = String.valueOf(SettingsRecord.NOTE_POINT);
        String name = apiary.getLocaleString("Note");
        Boolean state = (Boolean)getItem(new Integer(SettingsRecord.NOTE_POINT));
        if(state == null)
            state = Boolean.FALSE;
        settingCategories.addElement(getCategoryItem(id,name, state.booleanValue()));
    }

}
